package com.zzedu.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zzedu.domain.ZzExerciseBookSubmitContent;
import com.zzedu.dto.StudentExerciseReportDTO;
import com.zzedu.dto.ZzExerciseBookSubmitContentDTO;

import java.util.List;

/**
 * 作业内容Service接口
 *
 * @author Mr.Wang
 * @date 2025-06-02
 */
public interface IZzExerciseBookSubmitContentService extends IService<ZzExerciseBookSubmitContent> {
    /**
     * 构造查询条件
     */
    public LambdaQueryWrapper<ZzExerciseBookSubmitContent> buildQuery(ZzExerciseBookSubmitContentDTO zzExerciseBookSubmitContentDTO);

    /**
     * 答题正确率和答题次数
     *
     * @param clazzId
     * @param pictureBookId
     * @return
     */
    List<StudentExerciseReportDTO> getStudentExerciseReport(
            Long clazzId,
            Long pictureBookId,List<Long> stuIdList
    );
}
